package ee.ut.aa.neuraltic.neural;

import java.util.ArrayList;
import java.util.List;

public class Neuron implements Cloneable {

	private double value;
	private List<Synaps> synapses = new ArrayList<Synaps>();

	public double getValue() {
		return value;
	}

	public void setValue( double value ) {
		this.value = value;
	}

	public void addSynaps( Synaps synaps ) {

		synapses.add( synaps );
	}

	public List<Synaps> getSynapses() {
		return synapses;
	}

	public void setSynapses( List<Synaps> synapses ) {
		this.synapses = synapses;
	}

	@Override
	public String toString() {

		String result = "\n     ";

		for( Synaps synaps : synapses ) {
			result += "[" + synaps + "];";
		}
		return result;
	}
}
